package com.miaodiyun.httpApiDemo;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class test01
 */
@WebServlet("/sendSMS")
public class test01 extends HttpServlet {


	protected void doPost(HttpServletRequest req, HttpServletResponse resp) 
			            throws ServletException, IOException {
		 //获取到手机号
		String phone=req.getParameter("phone");
	/*	System.out.println("输入的手机号为："+phone);*/
		int code=IndustrySMS.execute(phone);
		System.out.println(code);
		resp.getWriter().print(code);

	}
}
